package edu.sctu.wulixia.month6.day20150604;

/**
 * Created by user05 on 2015/6/4.
 */
public class PrintTest {
    public static void main(String[] args) {
        ToStringMethod tostring1 = new ToStringMethod();
        tostring1.name = "张三";
        tostring1.sex = "男";
        System.out.println(tostring1.toString());//显式调用toString
        System.out.println(tostring1);//隐式调用toString
    }

}
